package com.xbongbong.sys.model;

import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.sys.domain.entity.PriceProductSetEntity;
import com.xbongbong.sys.domain.entity.PriceSetEntity;

import java.util.List;
import java.util.Map;


/**
 * @author bomfish
 */
public interface PriceProductSetModel extends IModel<PriceProductSetEntity> {

    void insertBatch(List<PriceProductSetEntity> list);

    @Override
    List<PriceProductSetEntity> findEntitys(Map<String, Object> param);

    Integer update(PriceProductSetEntity entity);

    PriceProductSetEntity getByKey(Long key, String corpid);

    void deleteByPriceId(Long priceId, String corpid);

    List<PriceProductSetEntity> getByPriceId(Long priceId, String corpid);

    @Override
    List<PriceProductSetEntity> findEntitysWithoutSub(Map<String, Object> param);

    void updateBatch(List<PriceProductSetEntity> updatePriceProductSetList, String corpid);

    void deleteByKey(Long id, String corpid);

    List<Long> getAllProduct(String corpid, Long dataId);

    void deleteByProductId(Long dataId, Long productId, String corpid);
}
